<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div region="center" style="padding:5px;" border="false">
	<table id="parcelList">
		<thead>
			<tr>
				<th data-options="field:'packageId',width:50,hidden:true">ID</th>
				<th data-options="field:'terminal',width:100,formatter: function(value,row,index){
		        			if(value){
								return value.branch.branchName+''+value.name;
							}
							return '未知';
		        		}">包裹位置</th>
				<th data-options="field:'boxId',width:50">柜号</th>
				<th data-options="field:'userPhone',width:100">用户手机</th>
				<th data-options="field:'parcelId',width:100">快递单号</th>
				<th data-options="field:'storeTime',width:120,formatter: function(value,row,index){
		        			if(value){
								return value.replace('T',' ');
							}
							return '未知';
		        		}">存入时间</th>
				<th data-options="field:'getTime',width:120,formatter: function(value,row,index){
		        			if(value){
								return value.replace('T',' ');
							}
							return '未取';
		        		}">取出时间</th>
				<th data-options="field:'packageStatus',width:50,formatter: function(value,row,index){
		        			if(value){
								switch(value){
									case 0:return '未取';
									case 1:return '已取';
									case 4:return '未处理';
									case 5:return '已处理';
									case 6:return '已清空';
									default : break;
								}
							}
							return '未知';
		        		}">状态</th>
				<th data-options="field:'checkCode',width:50">取件码</th>
			</tr>
		</thead>

		<%--<tbody>
			<s:iterator value="packages" status="st">
				<tr class="odd">
					<td class="center">
					<a href="getPackageCourier?courierID=<s:property value="courier.courierId" />">
						存件人详情
					</a>|
					<a href="smsStatus!getByParcelID?parcelID=<s:property value="packageId" />">
						短信发送详情
					</a>|
					<a href="package!getLogParcel?packageID=<s:property value="packageId" />">
						包裹操作详情
					</a>
					|<a id="sign" href="javascript:void(0)" status="<s:property value="packageStatus" />" packageID="<s:property value="packageId" />">标记</a>
					<s:if test="packageStatus==2">
						|<a id="unLock" href="javascript:void(0)" packageID="<s:property value="packageId" />">解锁</a>
					</s:if>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	--%></table>
</div>
<!-- 增加 -->
<div id="parcel_addDialog"></div>
<!-- 修改 -->
<div id="parcel_updateDialog"></div>
<script type="text/javascript" src="<%=path%>/js/system/parcel/parcel.js"></script>